import logging

logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger('test')
print log
#logging.debug('this is a loggging debug message') 